package com.azzcs.catalina.wrapper;

import com.azzcs.Servlet;
import com.azzcs.catalina.ContainerBase;
import com.azzcs.catalina.Valve;

/**
 * @Author: wzg
 * @Date: 2021/1/9 下午6:16
 */
public class StandardWrapper extends ContainerBase implements Wrapper {
    private String urlPattern;
    private Servlet servlet;
    public StandardWrapper() {
        pipeline.setBasic(new StandardWrapperValve());
    }

    public String getUrlPattern() {
        return urlPattern;
    }

    public void setUrlPattern(String urlPattern) {
        this.urlPattern = urlPattern;
    }

    public Servlet getServlet() {
        return servlet;
    }

    public void setServlet(Servlet servlet) {
        this.servlet = servlet;
        Valve basic = pipeline.getBasic();
        basic.setContainer(this);

    }

}
